package com.authine.cloudpivot.ext.domain.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.authine.mvp.app.launcher.domain.SelectorFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "DemoAppDto")
public class DemoAppDto {

    @Schema(description = "ID")
    private String id;

    @Schema(description = "创建人")
    private SelectorFormat createdBy;

    @Schema(description = "创建人部门")
    private SelectorFormat createdDept;

    @Schema(description = "创建时间")
    private String createdTime;

    @Schema(description = "拥有者")
    private SelectorFormat owner;

    @Schema(description = "拥有者部门")
    private SelectorFormat ownerDept;

    @Schema(description = "修改人")
    private SelectorFormat modifiedBy;

    @Schema(description = "修改时间")
    private String modifiedTime;

    @Schema(description = "单据号")
    private String document;

    @Schema(description = "单据状态:draft 草稿;void 作废;finished 有效")
    private String status;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "年龄")
    private int age;

    @Schema(description = "注册日期")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date registerdate;

    @Schema(description = "布尔")
    private boolean falg;
}
